package com.zzty.zzlp.dao;

import com.zzty.zzlp.entity.Project;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ProjectMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Project record);

    int insertSelective(Project record);

    @Select("select * from project where user_id=#{user_id}")
    List<Project> selectByPrimaryKey(Integer user_id);

    int updateByPrimaryKeySelective(Project record);

    int updateByPrimaryKey(Project record);

    @Delete("delete from project where id=#{id}")
    int del(int id);

    @Insert("insert into project (user_id,name,dev_env,pro_img,pro_show,content,de_cycle,de_tool)values(#{user_id},#{name},#{dev_env},#{pro_img},#{pro_show},#{content},#{de_cycle},#{de_tool})")
    int ins(Project project);

}